import { defineStore, createPinia } from 'pinia'
import { ref } from 'vue'
const painia = createPinia()
export const UseCountstore = defineStore('counter', () => {
    // 声明数据state


    const msg = ref(200)
    const Add = () => msg.value++

    return {
        msg,
        Add
    }






}, {
    persist: true
})
const store = {
    UseCountstore
}
export default store
